package com.cashmama.market.api.domain.vo.home;

import com.cashmama.market.api.domain.vo.order.PermissionsInfo;
import com.cashmama.market.api.infras.handler.ResponseData;
import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-05-18 14:33
 **/
public class HomeVO implements ResponseData {

    /**
     * 公告通知
     */
    private HomeNoticeVO homeNotice = new HomeNoticeVO();

    /**
     * 公告轮播
     */
    private List<String> noticeList;


    private Boolean hasUnreadMessage;
    /**
     * 广告位
     */
    private List<AdvertisementVO> adsList;
    /**
     * 推荐位
     */
    private List<CategoryVO> recommendationList;
    /**
     * 更多推荐
     */
    private List<CategoryVO> moreRecommendationList;
    /**
     * 客户端权限获取信息
     */
    private PermissionsInfo permissionsInfo;

    public HomeVO(HomeNoticeVO homeNotice, List<CategoryVO> recommendationList, List<AdvertisementVO> adsList, List<CategoryVO> moreRecommendationList, PermissionsInfo permissionsInfo) {
        this.noticeList = manuallyAddNotice();
        this.homeNotice = homeNotice;
        this.hasUnreadMessage = false;
        this.recommendationList = recommendationList;
        this.adsList = adsList;
        this.moreRecommendationList = moreRecommendationList;
        this.permissionsInfo = permissionsInfo;
    }

    public PermissionsInfo getPermissionsInfo() {
        return permissionsInfo;
    }

    public HomeVO setPermissionsInfo(PermissionsInfo permissionsInfo) {
        this.permissionsInfo = permissionsInfo;
        return this;
    }

    public List<String> getNoticeList() {
        return noticeList;
    }

    public HomeVO setNoticeList(List<String> noticeList) {
        this.noticeList = noticeList;
        return this;
    }

    public HomeNoticeVO getHomeNotice() {
        return homeNotice;
    }

    public HomeVO setHomeNotice(HomeNoticeVO homeNotice) {
        this.homeNotice = homeNotice;
        return this;
    }

    public Boolean getHasUnreadMessage() {
        return hasUnreadMessage;
    }

    public HomeVO setHasUnreadMessage(Boolean hasUnreadMessage) {
        this.hasUnreadMessage = hasUnreadMessage;
        return this;
    }

    public List<CategoryVO> getRecommendationList() {
        return recommendationList;
    }

    public HomeVO setRecommendationList(List<CategoryVO> recommendationList) {
        this.recommendationList = recommendationList;
        return this;
    }

    public List<AdvertisementVO> getAdsList() {
        return adsList;
    }

    public HomeVO setAdsList(List<AdvertisementVO> adsList) {
        this.adsList = adsList;
        return this;
    }

    public List<CategoryVO> getMoreRecommendationList() {
        return moreRecommendationList;
    }

    public HomeVO setMoreRecommendationList(List<CategoryVO> moreRecommendationList) {
        this.moreRecommendationList = moreRecommendationList;
        return this;
    }

    private List<String> manuallyAddNotice(){
        ArrayList<String> list = Lists.newArrayList();
        list.add("𝚖𝚒**𝚗𝚞 𝚍𝚎**𝚟𝚒 successful get ₹10000");
        list.add("𝐣𝐨**𝐡𝐢 𝐣o**𝐨𝐲 successful get ₹12000");
        list.add("𝐁𝐢**𝐥𝐢 𝐝𝐚**𝐞𝐫 successful get ₹10000");
        list.add("𝚜𝚒**𝚙𝚊 𝚝𝚒**𝚗𝚊 successful get ₹20000");
        list.add("𝔸𝕣**𝕒𝕟 𝕊𝕒**𝕒𝕣 successful get ₹5000");
        list.add("𝐻𝑂**𝑆𝐻 𝑆𝐻**𝑆𝐻 successful get ₹8000");
        list.add("𝐠𝐚**𝐬𝐡 𝐩𝐨**𝐧𝐢 successful get ₹10000");
        list.add("𝑺𝒂**𝒊𝒏 𝑲𝒉**𝒂𝒕 successful get ₹13000");
        list.add("𝙍𝙀**𝙏𝘼 𝙎𝙍**𝙑𝘼 successful get ₹3000");
        list.add("𝒂𝒏**𝒐𝒑 𝒔𝒉**𝒂𝒗 successful get ₹15000");
        list.add("𝐣𝐨**𝐡𝐢 𝐣𝐨**y𝐲 successful get ₹7000");
        list.add("𝑻𝒔**𝒕𝒉 𝒔𝒓**𝒆𝒆 successful get ₹8000");
        list.add("ꜱᴜ**ɪᴛ ᴋᴜ**ɢɪ successful get ₹10000");
        list.add("ꜱy**ʟᴜ ʀᴜ**ᴩᴜ successful get ₹10000");
        list.add("‍‌sa**it ch**ry successful get ₹12000");
        list.add("‌‍‍‌આ**શા બે**ષી successful get ₹8000");
        list.add("‌‌mu**ai Me**er successful get ₹8000");
        list.add("ᴩᴜ**ᴀᴍ ʟᴀ**ᴀʀ successful get ₹15000");
        list.add("ᴋʀ**ᴅᴜ ᴅᴜ**ʀɪ successful get ₹12000");
        list.add("ᴀᴋ**ᴀy ᴅᴇ**ᴀɪ successful get ₹10000");
        list.add("നി**ഷ് s Ni**ha s successful get ₹3000");
        list.add("ಸತ**ಶ್ na**ta successful get ₹10000");
        list.add("ಸತೀ**ಹ sa**ha successful get ₹5000");
        list.add("ವಿನ**್ Ra**m successful get ₹5000");
        list.add("బb**gai ram**sh successful get ₹5000");
        list.add("ప్రస**దు బత్**ుల successful get ₹10000");
        list.add("నం**రి KA**IK successful get ₹10000");
        list.add("జం**గం ka**ar successful get ₹10000");
        list.add("ఈఎ**వర ర**ఒ successful get ₹10000");
        list.add("ரா**ஷ் தம**am successful get ₹12000");
        list.add("ரா**ஜா Ra**my successful get ₹8000");
        list.add("தி**்யா MO**AN successful get ₹8000");
        list.add("தி**ரன் Dh**na successful get ₹10000");
        list.add("சு**தி J JE**AN successful get ₹12000");
        list.add("சி**தை ம**ி successful get ₹11000");
        list.add("சர**ண் சர**ன S successful get ₹10000");
        list.add("க்**ாம ஷெ**ர் successful get ₹8000");
        list.add("શ**રદા રા**વા successful get ₹8000");
        list.add("દિન**ેશ વા**લા successful get ₹5000");
        list.add("।l**am la**am successful get ₹10000");
        return list;
    }

}
